﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="UserAccountEdit.aspx.cs" Inherits="TimKen.Web.User.UserAccountEdit" %>
 
<%@ Register Src="../UserControls/UserCenter.ascx" TagName="UserCenter" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Common/Style/style.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:UserCenter ID="ucUserCenter" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">

    <script type="text/javascript">
        function checkForm() {
            if (document.getElementById("<%=txtConfirmPassword.ClientID%>").value != document.getElementById("<%=txtPassword.ClientID%>").value) {
                alert('<%=GetLangString("x_ErrorConfirmPassword")%>');
                return false;
            }
            return true;
        }
    </script>
    <form runat="server">
   <div class="rtitle">
        <%=GetLangString("UserInfo")%>
    </div>
    <div class="msglist">
        <%=GetLangString("UserInfoEdit")%></div>
    <div class="userinfo">
        <ul>
            <li>
                 <div class="userinfoth txtright">
                    <%=GetLangString("UserName")%>：
                </div>
 <asp:Label ID="labUserName" runat="server"></asp:Label>
                </li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("CustomerName")%>：</div>
                <asp:Label ID="labCustomerName" runat="server"></asp:Label>
                <asp:HiddenField ID="labCustomerID" runat="server" /> </li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("RealName")%>：</div>
                <asp:Label ID="labRealName" runat="server"></asp:Label></li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("Telephone")%>：</div>
                <asp:Label ID="labTelephone" runat="server"></asp:Label></li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("Email")%>：</div>
                <asp:Label ID="labEmail" runat="server"></asp:Label></li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("Password")%>：</div>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                 <%=GetLangString("ChangePasswordRemark") %></li>
            <li>
                <div class="userinfoth txtright">
                    <%=GetLangString("ConfirmPassword")%>：</div>
                <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
            </li>
            
        </ul>
        <div class="leftbt">
            <% if (LanguageID == 1)
       {%>
      <asp:ImageButton  ID="btnUpdate" runat="server"   OnClientClick="return checkForm(); " OnClick="btnUpdate_Click"  ImageUrl="~/Common/Image/common/tijiao_btn.gif"  Width="60" Height="21"/>
      <%}
       else { 
      %>
     <asp:ImageButton  ID="ImageButton1" runat="server"   OnClientClick="return checkForm(); " OnClick="btnUpdate_Click"  ImageUrl="~/Common/Image/common_en/tijiao_btn.gif"  Width="60" Height="21"/>
      <%} %></div>
    </div>
    <div class="msglist">
        <%=GetLangString("SameCustomerList")%></div>
         <asp:Repeater ID="repUserAccount" runat="server" >
        <HeaderTemplate>
        <!--产品列表-->
         <table class="rtable" cellspacing="0" style="text-align:center;margin:0 auto;padding:0;">
        <tr>
            <th width="90px" class="topleft">
                <%=GetLangString("UserName")%>
            </th>
            <th width="240px">
                <%=GetLangString("CustomerName")%>
            </th>
            <th width="140px">
                <%=GetLangString("RealName")%>
            </th>
            <th width="140px">
                <%=GetLangString("Telephone")%>
            </th>
            <th width="140px" class="topright">
                <%=GetLangString("RoleName")%>
            </th>
        </tr>
        </HeaderTemplate>
        <ItemTemplate>
           <!--content-->
           <tr>
            <td class="first">
                <%#Eval("UserName")%>
            </td>
            <td>
                <%#Eval("RealName")%>
            </td>
            <td>
                <%#Eval("Phone")%>
            </td>
                     <td>
                <%#Eval("RoleName")%>
            </td>
            <td class="last">
                aa
            </td>
        </tr>
        <!--content end-->
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater> 
        <table cellpadding="0" cellspacing="0" align="center" width="99%" class="border">
            <tr>
                <td>
    <%--<ux:AspNetPager ID="AspNetPager1" runat="server" Width="95%" ShowPageIndexBox="Always"
        HorizontalAlign="right" EnableTheming="true" AlwaysShow="true" PageIndexBoxType="DropDownList"
        OnPageChanged="AspNetPager1_PageChanged" ImagePath="/images/" NavigationButtonType="Image"
        ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" PagingButtonType="Image">
    </ux:AspNetPager>--%>
    
                    <ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
                        runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="10"
                        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowNavigationToolTip="true"
                        OnPageChanged="AspNetPager1_PageChanged" CustomInfoTextAlign="Left" LayoutType="Table"
                        CustomInfoHTML="" CustomInfoSectionWidth="">
                    </ux:AspNetPager>
                </td>
            </tr>
        </table>
    </div></form>
</asp:Content>
